Scaling redundancy elimination middleboxes

ABSTRACT

A capability is provided for scaling Redundancy Elimination (RE) middleboxes. The RE middleboxes include an RE encoding middlebox and an RE decoding middlebox. The RE middleboxes may employ max-match-based RE techniques or chunk-match-based RE techniques. The RE middleboxes may utilize Distributed Hash Tables (DHTs) to maintain content stores, respectively. The RE middleboxes may be scaled for use with cloud applications (e.g., for use in transfer of data between a customer network and a cloud side, for use in transfer of data between two cloud sites, or the like).

TECHNICAL FIELD

The invention relates generally to communication networks and, morespecifically but not exclusively, to providing redundancy elimination incommunication networks.

BACKGROUND

Many enterprises are moving toward adoption of cloud-based services. Formany enterprises, middleboxes are one of the important components of theenterprise network. Accordingly, several cloud providers and third partyservices providers are offering middleboxes as a service (or as avirtual appliance) within the cloud. One type of middlebox that iscommonly used is the Wide Area Network (WAN) optimizer middlebox (whichalso may be referred to as a Redundancy Elimination (RE) middlebox,given that WAN optimization typically includes RE functions). Ingeneral, WAN optimizer middleboxes suppress duplicate content withintraffic, and also may provide bandwidth savings as well as improveapplication performance. A WAN optimizer middlebox of an enterprise canbe deployed between the enterprise and the cloud, or between two cloudsites used by the enterprise in a distributed setting. In many cases, itis desirable to have pay-per-use capabilities for such WAN optimizermiddleboxes, similar to applications like web servers, where theproviders or users of the WAN optimizer middleboxes incur costs as pertraffic demand. As the adoption of cloud-based services by enterprisescontinues to grow, it is becoming desirable to be able to scale WANoptimizer middleboxes to handle greater volumes of traffic.

SUMMARY

Various deficiencies in the prior art are addressed by embodiments forscaling redundancy elimination middleboxes.

In one embodiment, an apparatus includes a data processing module havinga processor and a memory communicatively connected to the processor,wherein the data processing module is configured to determine, based ona packet class of a received packet, which of a plurality of redundancyelimination (RE) processing functions to perform for the receivedpacket.

In one embodiment, a method includes determining, at a data processingmodule comprising a processor and a memory, which of a plurality ofredundancy elimination (RE) processing functions to perform for areceived packet, where the determining is based on a packet class of areceived packet.

In one embodiment, an apparatus includes a data processing module havinga processor and a memory communicatively connected to the processor,wherein the data processing module is configured to perform redundancyelimination (RE) processing functions for a received packet based on aportion of a distributed hash table (DHT) associated with the dataprocessing module.

In one embodiment, an apparatus includes a data processing module havinga processor and a memory communicatively connected to the processor,wherein the data processing module is configured to cooperate with atleast one other data processing module to perform redundancy elimination(RE) processing for a packet.

BRIEF DESCRIPTION OF THE DRAWINGS

The teachings herein can be readily understood by considering thefollowing detailed description in conjunction with the accompanyingdrawings, in which:

FIG. 1 depicts a high-level block diagram of an exemplary cloud-basedcommunication system supporting redundancy elimination (RE) functions;

FIG. 2 depicts an exemplary embodiment of an RE encoding middlebox formax-match RE;

FIG. 3 depicts an exemplary embodiment of an RE decoding middlebox formax-match RE;

FIG. 4 depicts exemplary distributions of RE functions across differentprocessing stages for an exemplary RE encoding middlebox having threeencoders and an exemplary RE decoding middlebox having three decoders;

FIG. 5 depicts an exemplary embodiment of an RE encoding middlebox forchunk-match RE;

FIG. 6 depicts an exemplary embodiment of an RE decoding middlebox forchunk-match RE;

FIG. 7 depicts an exemplary embodiment of an RE encoding middlebox forDHT-based max-match RE;

FIG. 8 depicts an exemplary embodiment of an RE decoding middlebox forDHT-based max-match RE;

FIG. 9 depicts an exemplary embodiment of an RE encoding middlebox forDHT-based chunk-match RE;

FIG. 10 depicts an exemplary embodiment of an RE decoding middlebox forDHT-based chunk-match RE;

FIG. 11 depicts one embodiment of a method for processing a packet forsupporting RE; and

FIG. 12 depicts a high-level block diagram of a computer suitable foruse in performing functions described herein.

To facilitate understanding, identical reference numerals have beenused, where possible, to designate identical elements that are common tothe figures.

DETAILED DESCRIPTION

In general, a redundancy elimination (RE) capability is provided forscaling RE middleboxes in communication networks.

In at least some embodiments, the RE capability enables RE using thecontent history of some or all of the RE middlebox instances while stillscaling the processing for RE. As a result, at least some embodiments ofthe RE capability effectively scale both storage and processingcapabilities for RE middleboxes.

It is noted that, although primarily depicted and described hereinwithin the context of providing the RE capability within a cloud-basedcommunication system (e.g., for communication between cloud sites via awide area network (WAN)), various embodiments of the RE capability maybe utilized within other types of communication systems in whichredundancy elimination may be necessary or desirable.

FIG. 1 depicts a high-level block diagram of an exemplary cloud-basedcommunication system supporting redundancy elimination (RE) functions.

As depicted in FIG. 1, cloud-based communication system 100 includes afirst cloud site 110 ₁ and a second cloud site 110 ₂ (collectively,cloud sites 110) capable of communication via a wide area network (WAN)120. The cloud sites 110 are configured to support WAN optimization foroptimizing various aspects of the transfer of data between cloud sites110 via WAN 120. As part of WAN optimization, cloud sites 110 areconfigured to support RE functions for eliminating redundancy intransfer of data from the first cloud site 110 ₁ to the second cloudsite 110 ₂ via WAN 120 (although it will be appreciated that cloud sites110 alternatively or also may be configured to support WAN optimizationfor optimizing various aspects of the transfer of data from the secondcloud site 110 ₂ to the first cloud site 110 ₁ via WAN 120). Morespecifically, first cloud site 110 ₁ includes an RE encoding middlebox112 _(E) and second cloud site includes an RE decoding middlebox 112_(D). The WAN 120 may be any type of communication network suitable forsupporting propagation of data between cloud sites 110.

In general, WAN optimization functions typically include redundancyelimination (RE) functions as well as other types of functions. Whiledifferent WAN optimization solutions may differ in the manner in whichthe RE functionality is implemented, the basic RE methodology is similarin most cases. In general, RE is provided using a pair of RE middleboxesincluding an encoding middlebox and a decoding middlebox configured toencode and decode data items in a manner for reducing or eliminatingtransfer of redundant data, respectively. It is noted that the dataitems may include packets, portions of packets (which also may bereferred to herein as chunks), or the like, as well as variouscombinations thereof.

In general, an encoding middlebox receives original packets, encodes theoriginal packets into encoded (smaller) packets, and propagates theencoded packets via a network. An encoding middlebox typically maintainstwo structures: a fingerprint table and a content store. The fingerprinttable includes fingerprints pointing to content in the content store(e.g., packets, portions of packets, or the like). The content storestores content received at the encoding middlebox (e.g., new content isstored upon arrival and older content is evicted to make room for newercontent). The fingerprint table is adjusted accordingly when content itadded to and evicted from the content store. The encoding middlebox maybe configured to support max-match RE, chunk-match RE, or any othersuitable RE scheme.

In max-match RE, generally speaking, a maximal matched region of theoriginal packet is replaced by an encoded region that is smaller thanthe matched region, thereby making the original packet smaller. Thefingerprints are computed per packet based on a fingerprint algorithm(e.g., using Rabin fingerprinting or any other suitable type offingerprint algorithm). A fingerprint is selected from the originalpacket. The selection of the fingerprint may be based on certaincriteria (e.g., value sampling or the like). A lookup is performed inthe fingerprint table, using the selected fingerprint, in order todetermine if the selected fingerprint from the original packet isincluded in the fingerprint table. If a match is found in thefingerprint table, the corresponding stored packet in the content storeis retrieved and the matched region between the original packet andstored packet is expanded via comparison (e.g. byte-by-byte comparison)until the maximal match between the original packet and the storedpacket is identified. After the maximal match is identified, the matchedregion of the original packet is replaced by an encoded region (e.g., ashim header including a pointer to the one of the stored packets fromthe content store and a size of the matched region).

In chunk-match RE, generally speaking, a chunk of the original packet isreplaced by an encoded region that is smaller than the chunk, therebymaking the original packet smaller. The original packet is divided intochunks and the chunks are stored in the content store. The fingerprinttable includes hashes pointing to the chunks in the content store. Afingerprint is selected from the original packet. The selection of thefingerprint may be based on certain criteria (e.g., value sampling orthe like). A lookup is performed in the fingerprint table, using theselected fingerprint, in order to determine if the selected fingerprintfrom the original packet is included in the fingerprint table. If amatch is found in the fingerprint table, the matched region/chunk of theoriginal packet is replaced by an encoded region (e.g., a shim headerincluding a pointer to the one of the stored chunks from the contentstore and a size of the matched region/chunk). In chunk-match RE, acomparison-based expansion is not performed when a match is found in thefingerprint table.

In general, a decoding middlebox receives encoded packets andreconstructs the original packets from the encoded packets. The decodingmiddlebox has a content store similar to the content store maintained onthe encoding middlebox (e.g., storing packets in max-match RE, storingchunks in chunk-match RE, and so forth). When an encoded packetincluding an encoded region (which also may be referred to herein as anencoding key) is received at the decoding middlebox, the encoded regionis used to reconstruct the original packet by replacing the encodedregion with the original content (i.e., the content that was removedfrom the original packet and replaced with the encoded region by theencoding middlebox). The encoded region is used to perform a lookup inthe content store of the decoding middlebox to retrieve the originalcontent and the encoded region is then replaced by the original contentsuch that the original packet is reformed.

In the RE middleboxes, the various data structures may be maintained inmemory or disk. In at least some cases, for high performance, the datastructures are maintained in memory only. The term “storage module” maybe used herein to refer to any type of storage suitable for use inmaintaining such data structures for RE middleboxes (e.g., memory, disk,or the like, as well as various combinations thereof).

As described herein, such RE middleboxes may be implemented as virtualappliances in a cloud setting; however, scaling of such RE middleboxesimplemented as virtual appliances is non-trivial and, further,load-balancing based approaches to scaling of such RE middleboxesimplemented as virtual appliances typically do not work well. As notedhereinabove, at least some embodiments of the RE capability provideeffective scaling of storage and processing capabilities for REmiddleboxes.

In one embodiment, the RE encoding middlebox 112 _(E) and the REdecoding middlebox 112 _(D) are configured to support scaling of storageand processing capabilities related to providing RE functions fortransfer of data via the WAN 120. Exemplary embodiments of RE encodingmiddlebox 112 _(E) and RE decoding middlebox 112 _(D) for max-match REare depicted and described with respect to FIG. 2 and FIG. 3,respectively. Exemplary embodiments of RE encoding middlebox 112 _(E)and RE decoding middlebox 112 _(D) for chunk-match RE are depicted anddescribed with respect to FIG. 5 and FIG. 6, respectively.

It is noted that, although primarily depicted and described in FIG. 1with respect to an embodiment in which RE processing middleboxes areutilized in order to optimize communication between two cloud sites, REprocessing middleboxes also may be utilized in order to optimizecommunication between various other elements (e.g., between anenterprise and a cloud site, between a user and a cloud site, between aradio access network (RAN) and a core network (CN) in a wirelesscommunication system, or the like, as well as various combinationsthereof).

In one embodiment, RE encoding middlebox 112 _(E) and RE decodingmiddlebox 112 _(D) are configured to support max-match RE capabilities.This is depicted and described with respect to FIGS. 2, 3, and 4.

FIG. 2 depicts an exemplary embodiment of an RE encoding middlebox formax-match RE. More specifically, FIG. 2 depicts an exemplary embodimentof RE encoding middlebox 112 _(E) for max-match RE (denoted as REencoding middlebox 200 _(E)).

The RE encoding middlebox 200 _(E) includes a classifier 210, aclassification-to-encoders mapping table 211, a plurality of encoders212 ₁-212 _(N) (collectively, encoders 212), and a merger 215. Theencoders 212 ₁-212 _(N) include a plurality of content stores 213 ₁-213_(N) (collectively, content stores 213) and a plurality of fingerprinttables 214 ₁-214 _(N) (collectively, fingerprint tables 214),respectively.

The classifier 210 is configured to communicate with each of theencoders 212. The merger 215 also is configured to communicate with eachof the encoders 212. The encoders 212 are configured to communicate witheach other and it is noted that, although primarily depicted ascommunicating with each other serially (illustratively, encoder 212 ₁communicating with encoder 212 ₂, and so forth, as well as in theopposite order), in at least some embodiments any encoder 212 maycommunicate with any other encoder 212 directly (i.e., withouttraversing other encoders 212) or indirectly without traversing thedepicted order of encoders 212.

The RE encoding middlebox 200 _(E) is configured such that packets areclassified by classifier 210 and then processed by encoders 212 in adifferent manner (e.g., processed by different subsets of encoders 212,processed by encoders 212 using different orders of encoders 212, or thelike, as well as various combinations thereof) based on the packetclasses of the packets as determined by classifier 210.

The classifier 210 receives packets and determines classifications ofthe received packets. The RE encoding middlebox 200 _(E) may support anysuitable numbers and types of packet classes which may be based on anysuitable criteria. For example, classification of received packets byclassifier 210 may be performed in a round-robin manner, usingload-balancing based on packet sizes of the packets, or the like. In oneembodiment, the set of packet classes supported by the RE encodingmiddlebox 200 _(E) is the same as the set of packet classes supported bythe RE decoding middlebox 112 _(D). The classifier 210 providesclassified packets to the encoders 212 in accordance with theclassification-to-encoders mapping table 211.

The classification-to-encoders mapping table 211 specifies, for each ofthe packet classes, a mapping of the packet class to the respectivemanner in which encoders 212 are to be used to encode packets of thatpacket class.

For a given packet class, the manner in which encoders 212 are to beused to encode packets of the packet class is specified as an encoderslist, where the order of the encoders 212 in the encoders list specifiesthe order in which the encoders 212 are to operate on each packetclassified in the given packet class. For example, the exemplaryclassification-to-encoders mapping table 211 illustrates that a firstpacket class (FIRST CLASS) is mapped to a first ordering of encoders 212(illustratively, encoder 212 ₁, encoder 212 ₂, and so forth in numericalorder of the subscripts until encoder 212 _(N)), a second packet class(SECOND CLASS) is mapped to a second ordering of encoders 212(illustratively, encoder 212 ₂, encoder 212 ₃, and so forth in numericalorder of the subscripts until encoder 212 _(N) and then finally encoder212 ₁), and so forth until an N-th packet class (N-th CLASS) is mappedto an N-th ordering of encoders 212 (illustratively, encoder 212 _(N),encoder 212 _(N−1), and so forth in reverse numerical order of thesubscripts until encoder 212 ₁), and so forth. It is noted that,although primarily depicted and described with respect to use ofspecific numbers of packet classes and encoders 212 (and where thenumber of packet classes is equal to the number of encoders 212), feweror more packet classes or encoders 212 may be used (and it will beappreciated that a one-to-one relationship between the number of packetclasses and the number of encoders 212 is not required). It is notedthat, although primarily depicted and described with respect to anembodiment in which the classification-to-encoders mapping table 211 isa single table accessible to each of the encoders 212, N copies of theclassification-to-encoders mapping table 211 may be stored on theencoders 212 ₁-212 _(N), respectively.

The classifier 210 uses the classification-to-encoders mapping table 211to determine the set of encoders 212 to be used to encode a receivedpacket. For example, after determining the packet class of a receivedpacket, the classifier 210 may use the determined packet class as a keyinto the classification-to-encoders mapping table 211 in order todetermine the set of encoders 212 to be used to encode the receivedpacket. As described above, the classification-to-encoders mapping table211 specifies, for each packet class, an order of the encoders 212 whichis indicative of the order in which the encoders 212 are to process thepacket for encoding the packet. The classifier 210 marks the packetclass of the packet within the packet before providing the packet to thefirst encoder 212 in the encoders list for the packet class. In oneembodiment, the classifier 210 marks the packet class within the packetby including the encoders list for the packet class, as determined fromclassification-to-encoders mapping table 211, within the packet (therebypreventing the encoders 212 in the encoders list for the packet classfrom having to perform lookups to the classification-to-encoders mappingtable 211, because the encoders list is readily available from thepacket itself). In one embodiment, the classifier 210 marks the packetclass within the packet by marking the packet with a packet classidentifier which may then be used by each encoder 212 in the encoderslist as a key into the classification-to-encoders mapping table 211. Insuch embodiments, a current encoder 212 determines its own positionwithin the encoders list for the packet class such that it knows whichRE functions to perform for the packet and such that it also candetermine the next node (e.g., next encoder 212 or merger 215) to whichthe packet is to be provided.

The encoders 212 each are configured to support a plurality of REencoding functions for max-match RE. The RE encoding functions supportedby each encoder 212 include (1) computing fingerprints, (2) performingfingerprint lookups, (3) expanding matched regions, and (4) storingpackets in a content store (illustratively, respective content stores213). It is noted that, although primarily depicted and described withrespect to embodiments in which each of the encoders 212 is configuredto perform each of the four listed RE encoding functions, in at leastsome embodiments one or more of the encoders 212 may be configured tosupport fewer of the listed RE encoding functions or other RE encodingfunctions.

The encoders 212 are configured to know which RE encoding functions toperform for a packet of a packet class based on their positions withinthe encoders list associated with the packet class as specified in theclassification-to-encoders mapping table 211.

The RE encoding functions performed by an encoder 212 for a packet of apacket class depend on whether the encoder 212 is the first encoder 212in the encoders list for the packet class or a subsequent encoder 212 inthe encoders list for the packet class. In one embodiment, the encoders212 are configured such that the first encoder 212 in the encoders listis responsible for performing each of the four RE encoding functions fora given packet of that packet class and the subsequent encoders 212 inthe encoders list each are responsible for performing fingerprintlookups and expanding matched regions for fingerprints not matched andexpanded by encoders 212 earlier in the encoders list. As noted above,each encoder 212 can determine its position in the encoders list for agiven packet class from the packet itself (e.g., where the classifier210 adds the encoders list to the packet based on a look up to theclassification-to-encoders mapping table 211) or via a look up to theclassification-to-encoders mapping table 211 (e.g., based on a packetclass identifier included within the packet by the classifier 210). Thefirst encoder 212 in the encoders list for a packet class, uponreceiving a packet marked as being associated with that packet class,computes the fingerprints of the packet (which is maintained as a listof computed fingerprints for use by the first encoder 212 in theencoders list as well as one or more subsequent encoders 212 in theencoders list), stores the packet in its associated content store 213,performs fingerprint lookups within its associated fingerprint table214, and, when a fingerprint match(es) is found, encodes the matchedregion(s) of the matched fingerprint(s) within the packet, removes thematched fingerprint(s) from the list of computed fingerprints, andpasses the encoded packet and the updated list of computed fingerprintsto the next encoder 212 in the encoders list for that packet class. Eachsubsequent encoder 212 in the encoders list for the packet class (i.e.,all those except for the first encoder 212 in the encoders list for thepacket class) receives the encoded packet from the previous encoder 212in the encoders list, perform fingerprint lookups within its associatedfingerprint table 214, and, when a fingerprint match(es) is found,encodes the matched region(s) of the matched fingerprint(s) within thepacket, removes the matched fingerprint(s) from the list of computedfingerprints, and passes the encoded packet and the updated list ofcomputed fingerprints to the next encoder 212 in the encoders list forthat packet class. The final encoder 212 in the encoders list, afterperforming its functions as a subsequent encoder 212 in the encoderslist for that packet class, provides the encoded packet to merger 215.

The merger 215 receives encoded packets from encoders 212 and propagatesthe encoded packets (e.g., via WAN 120 via which the encoded packets maybe delivered to RE decoding middlebox 112 _(D)).

In this manner, the RE encoding functions may be distributed (and, thus,load-balanced) across the various encoders 212 and, similarly, thestorage and processing associated with the RE encoding functions isdistributed (and, thus, load-balanced) across the various encoders 212.Since the packets are classified and provided to different ones of theencoders 212 operating as first encoders in the different lists ofencoders 212 for the different packet classes, the storage of thepackets is distributed across the content stores of the 213 of theencoders 212, respectively. Similarly, since the packets are classifiedand provided to different ones of the encoders 212 operating as firstencoders in the different lists of encoders 212 for the different packetclasses, the maintenance of fingerprints used for RE is distributedacross the fingerprint tables 214 of the encoders 212, respectively.Since the packets are classified and provided to the encoders 212operating as subsequent encoders in different orders based on thedifferent lists of encoders 212 for the different packet classes, theprocessing of packets for replacing fingerprints with encoded regions isdistributed across the encoders 212, respectively. The various benefitsof configuring RE encoding middlebox 200 _(E) in this manner may bebetter understood by way of reference to FIG. 4.

FIG. 3 depicts an exemplary embodiment of an RE decoding middlebox formax-match RE. More specifically, FIG. 3 depicts an exemplary embodimentof RE decoding middlebox 112 _(D) for max-match RE (denoted as

RE decoding middlebox 300 _(D)).

The RE decoding middlebox 300 _(D) of FIG. 3 is configured to operate ina manner similar to the RE encoding middlebox 200 _(E) of FIG. 2, withthe RE decoding middlebox 300 _(D) performing RE decoding functionscomplementary to the RE encoding functions performed by RE encodingmiddlebox 200 _(E).

The RE decoding middlebox 300 _(D) includes a classifier 310, aclassification-to-decoders mapping table 311, a plurality of decoders312 ₁-312 _(N) (collectively, decoders 312), and a merger 315. Thedecoders 312 ₁-312 _(N) include a plurality of content stores 313 ₁-313_(N) (collectively, content stores 313), respectively.

The classifier 310 is configured to communicate with each of thedecoders 312. The merger 315 also is configured to communicate with eachof the decoders 312. The decoders 312 are configured to communicate witheach other and it is noted that, although primarily depicted ascommunicating with each other serially (illustratively, decoder 312 ₁communicating with decoder 312 ₂, and so forth, as well as in theopposite order), in at least some embodiments any decoder 312 maycommunicate with any other decoder 312 directly (i.e., withouttraversing other decoders 312) or indirectly without traversing thedepicted order of decoders 312.

The RE decoding middlebox 300 _(D) is configured such that packets areclassified by classifier 310 and then processed by decoders 312 in adifferent manner (e.g., processed by different subsets of decoders 312,processed by decoders 312 using different orders of decoders 312, or thelike, as well as various combinations thereof) based on the packetclasses of the packets as determined by classifier 310.

The classifier 310 receives packets, determines classifications of thereceived packets, and marks the classifications of the received packetswithin the packets, respectively. The RE decoding middlebox 300 _(D) maysupport any suitable numbers and types of packet classes which may bebased on any suitable criteria. For example, classification of receivedpackets by classifier 310 may be performed in a round-robin manner,using load-balancing based on packet sizes of the packets, or the like.In one embodiment, the set of packet classes supported by the REdecoding middlebox 300 _(D) is the same as the set of packet classessupported by the RE encoding middlebox 112 _(E). The classifier 310provides the classified packets to the decoders 312 in accordance withthe classification-to-decoders mapping table 311.

The classification-to-decoders mapping table 311 specifies, for each ofthe packet classes, a mapping of the packet class to the respectivemanner in which decoders 312 are to be used to decode packets of thatpacket class. For a given packet class, the manner in which decoders 312are to be used to decode packets of the packet class is specified as adecoders list, where the order of the decoders 312 in the decoders listspecifies the order in which the decoders 312 are to operate on eachpacket classified in the given packet class. In one embodiment, for eachpacket class, the order of the decoders 312 in the decoders list is thereverse of the order of encoders 212 of the encoders list as specifiedin the classification-to-encoders mapping table 211 of RE encodingmiddlebox 200 _(E). For example, the exemplaryclassification-to-decoders mapping table 311 of FIG. 3 illustrates thata first packet class (FIRST CLASS) is mapped to a first ordering ofdecoders 312 (illustratively, decoder 312 _(N), decoder 312 _(N-1), andso forth in numerical order of the subscripts until decoder 312 ₁), asecond packet class (SECOND CLASS) is mapped to a second ordering ofdecoders 312 (illustratively, decoder 312 _(N-1), decoder 312 _(N−2),and so forth in numerical order of the subscripts until decoder 312 ₁and then finally decoder 312 _(N)), and so forth until an N-th packetclass (N-th CLASS) is mapped to an N-th ordering of decoders 312(illustratively, decoder 312 ₁, decoder 312 ₂, and so forth in numericalorder of the subscripts until decoder 312 _(N)), and so forth. It isnoted that, although primarily depicted and described with respect touse of specific numbers of packet classes and decoders 312 (and wherethe number of packet classes is equal to the number of decoders 312),fewer or more packet classes or decoders 312 may be used (and it will beappreciated that a one-to-one relationship between the number of packetclasses and the number of decoders 312 is not required). It is notedthat, although primarily depicted and described with respect to anembodiment in which the classification-to-decoders mapping table 311 isa single table accessible to each of the decoders 312, N copies of theclassification-to-decoders mapping table 311 may be stored on thedecoders 312 ₁ - 312 _(N), respectively.

The classifier 310 uses the classification-to-decoders mapping table 311to determine the set of decoders 312 to be used to decode a receivedpacket. For example, after determining the packet class of a receivedpacket, the classifier 310 may use the determined packet class as a keyinto the classification-to-decoders mapping table 311 in order todetermine the set of decoders 312 to be used to decode the receivedpacket. As described above, the classification-to-decoders mapping table311 specifies, for each packet class, an order of the decoders 312 whichis indicative of the order in which the decoders 312 are to process thepacket for decoding the packet. The classifier 310 marks the packetclass of the packet within the packet before providing the packet to thefirst decoder 312 in the decoders list for the packet class. In oneembodiment, the classifier 310 marks the packet class within the packetby including the decoders list for the packet class, as determined fromclassification-to-decoders mapping table 311, within the packet (therebypreventing the decoders 312 in the decoders list for the packet classfrom having to perform lookups to the classification-to-decoders mappingtable 311, because the decoders list is readily available from thepacket itself). In one embodiment, the classifier 310 marks the packetclass within the packet by marking the packet with a packet classidentifier which may then be used by each decoder 312 in the decoderslist as a key into the classification-to-decoders mapping table 311. Insuch embodiments, a current decoder 312 determines its own positionwithin the decoders list for the packet class such that it knows whichRE functions to perform for the packet and such that it also candetermine the next node (e.g., next decoder 312 or merger 315) to whichthe packet is to be provided.

The decoders 312 each are configured to support a plurality of REdecoding functions for max-match RE. The RE decoding functions supportedby each decoder 312 include (1) decoding encoding keys, (2) performinglookups for packets identified by encoding keys, (3) replacing encodingkeys with corresponding portions of packets identified by encoding keys,and (4) storing packets in a content store (illustratively, respectivecontent stores 313). It is noted that, although primarily depicted anddescribed with respect to embodiments in which each of the decoders 312is configured to perform each of the four listed RE decoding functions,in at least some embodiments one or more of the decoders 312 may beconfigured to support fewer of the listed RE decoding functions or otherRE decoding functions.

The decoders 312 are configured to know which RE decoding functions toperform for a packet of a packet class based on their positions withinthe decoders list associated with the packet class as specified in theclassification-to-decoders mapping table 311.

The RE decoding functions performed by a decoder 312 for a packet of apacket class depend on whether the decoder 312 is a first decoder 312 inthe decoders list for the packet class, an intermediate decoder 312 inthe decoders list for the packet class, or the final decoder 312 in thedecoders list for the packet class. In one embodiment, the decoders 312are configured such that the first decoder 312 in the decoders list isresponsible for performing the first RE decoding function (namely,decoding encoding keys), each of the decoders 312 in the decoders listis responsible for performing the second and third RE decoding functions(namely, performing lookups for packets identified by encoding keys andreplacing encoding keys with corresponding portions of packetsidentified by encoding keys), and the final decoder 312 in the decoderslist is responsible for performing the fourth RE decoding function(namely, storing packets in its content store). As noted above, eachdecoder 312 can determine its position in the decoders list for a givenpacket class from the packet itself (e.g., where the classifier 310 addsthe decoders list to the packet based on a look up to theclassification-to-decoders mapping table 311) or via a look up to theclassification-to-decoders mapping table 311 (e.g., based on a packetclass identifier included within the packet by the classifier 310). Thefirst decoder 312 in the decoders list for a packet class, uponreceiving a packet marked as being associated with that packet class,identifies and decodes each of the encoding keys included within thereceived packet (e.g., put there by RE encoding middlebox 112 _(E)during RE-based encoding of the packet). The first decoder 312 in thedecoders list for the packet class then performs lookups for each of theencoding keys using its content store 313 and, for each encoding key forwhich a matching packet is identified in the content store 313 of thefirst decoder 312, replaces the encoding key in the received packet withthe corresponding portion of the stored packet identified from thecontent store 313 of the first decoder 312. The first decoder 312 in thedecoders list for the packet class then passes the received packet andthe remaining encoding keys (i.e., those that the first decoder 312 wasunable to process) to the second decoder 312 in the decoders list forthe packet class. The second decoder 312 in the decoders list for thepacket class performs lookups for each of the remaining encoding keys(received from the first decoder 312) using its content store 313 and,for each encoding key for which a matching packet is identified in thecontent store 313 of the second decoder 312, replaces the encoding keyin the received packet with the corresponding portion of the storedpacket identified from the content store 313 of the second decoder 312.The second decoder 312 in the decoders list for the packet class thenpasses the received packet and the remaining encoding keys (i.e., thosethat the first and second decoders 312 were unable to process) to thethird decoder 312 in the decoders list for the packet class. The packetcontinues to be processed and passed in this manner until reaching thefinal decoder 312 in the decoders list for the packet class. The finaldecoder 312 in the decoders list for the packet class performs lookupsfor each of the remaining encoding keys (received from the next-to-finaldecoder 312) using its content store 313 and, for each encoding key forwhich a matching packet is identified in the content store 313 of thefinal decoder 312, replaces the encoding key in the received packet withthe corresponding portion of the stored packet identified from thecontent store 313 of the second decoder 312. Thus, following processingof the received packet by the final decoder 312 in the decoders list forthe packet class, the complete packet (i.e., the original packet beforeit was encoded by RE encoding middlebox 112 _(E) during RE-basedencoding of the packet) is restored. The final decoder 312 in thedecoders list for the packet class stores the packet in its contentstore 313. The final decoder 312 in the decoders list for the packetclass provides the recovered packet to the merger 315.

The merger 315 receives decoded packets from decoders 312 and propagatesthe decoded packets.

In this manner, the RE decoding functions may be distributed (and, thus,load-balanced) across the various decoders 312 and, similarly, thestorage and processing associated with the RE decoding functions isdistributed (and, thus, load-balanced) across the various decoders 312.For example, since the packets are classified and provided to differentones of the decoders 312 operating as first decoders in the differentlists of decoders 312 for the different packet classes, the processingof encoding keys of received packets is distributed across the decoders312, respectively. For example, since the packets are classified andprovided to different chains of decoders 312 for the different packetclasses, the storage of the packets is distributed across the contentstores of the 313 of the decoders 312, respectively. For example, sincestorage of the packets is distributed across the decoders 312,processing of packets to replace encoding keys of packets with contentof stored packets also is distributed across the decoders 312. Thevarious benefits of configuring RE decoding middlebox 300 _(D) in thismanner may be better understood by way of reference to FIG. 4.

FIG. 4 depicts exemplary distributions of RE functions across differentprocessing stages for an exemplary RE encoding middlebox having threeencoders and an exemplary RE decoding middlebox having three decoders.As described herein, the RE encoding middlebox 200 _(E) splits the REprocessing across multiple encoders 212 and uses and effectively largememory. In max-match RE, the RE encoding functions to be performed foreach packet include (1) computing fingerprints, (2) performingfingerprint lookups, (3) expanding matched regions, and (4) storingpackets in a content store.

With respect to the first and fourth RE encoding functions, it is notedthat, in one embodiment, the first and fourth functions are assignedonly to the first node in the list of nodes for a given packet class. Ifan assumption is made each packet class includes random permutations ofthe encoders 212 and that the classifier 210 splits packets equallyamong all of the packet classes, then, with high probability, eachencoder 212 will have approximately equal responsibility of the firstand fourth RE encoding functions. Thus, the first and fourth RE encodingfunctions would be equally split across multiple encoders 212.

With respect to the third RE encoding function, it is noted that thethird RE encoding function also is automatically split across theencoders 212 (e.g., in a simple round-robin policy, the packets will bestored approximately equally among all of the encoders 212 and, thus,there is high likelihood that the matching regions also will be splitapproximately equally among all of the encoders 212). In one embodiment,classifier 210 may be configured to use one or more policies configuredto enforce an even split amongst each of the encoders 212.

With respect to the second RE encoding function, however, it is notedthat the fingerprint lookup function may not be split amongst theencoders 212. However, given that the other three RE encoding functionsare split across the encoders 212 and that in-memory fingerprint lookupsare relatively inexpensive compared to the other RE encoding functions,there is no significant negative impact if the fingerprint lookups arenot be evenly split amongst the encoders 212.

As a result, each encoder 212 is performing some RE encoding functionsat every stage. This is illustrated in FIG. 4, where the exemplarydistribution 410 depicts distribution of RE encoding functions acrossdifferent processing stages for an exemplary implementation of REencoding middlebox 212 _(E) having three encoders (denoted as Encoder 1,Encoder 2, and Encoder 3). The exemplary implementation of RE encodingmiddlebox 212 _(E) supports three packet classes denoted as RED, BLUE,and GREEN, where the RED packet class has a first encoder list (Encoder1, Encoder 2, Encoder 3), the BLUE packet class has a second encoderlist (Encoder 2, Encoder 3, Encoder 1), and the GREEN packet class has athird encoder list (Encoder 3, Encoder 1, Encoder 2). In Stage 1 ofexemplary distribution 410,

Encoder 1 computes fingerprints, stores packets, and performsfingerprint lookups for a RED packet, Encoder 2 computes fingerprints,stores packets, and performs fingerprint lookups for a BLUE packet, andEncoder 3 computes fingerprints, stores packets, and performsfingerprint lookups for a GREEN packet. In Stage 2 of exemplarydistribution 410, Encoder 1 performs fingerprint lookups for remainingfingerprints of the GREEN packet, Encoder 2 performs fingerprint lookupsfor remaining fingerprints of the RED packet, and Encoder 3 performsfingerprint lookups for remaining fingerprints of the BLUE packet. InStage 3 of exemplary distribution 410, Encoder 1 performs fingerprintlookups for remaining fingerprints of the BLUE packet, Encoder 2performs fingerprint lookups for remaining fingerprints of the GREENpacket, and Encoder 3 performs fingerprint lookups for remainingfingerprints of the RED packet. From exemplary distribution 410 it maybe seen that, since each encoder performs lookups to its fingerprinttable to find matches for each packet, the effective memory used for REis the sum of the memory available on all the encoders 212.

As described herein, the RE decoding middlebox 300 _(D) splits the REprocessing across multiple decoders 312 and uses and effectively largememory. In max-match RE, the RE decoding functions to be performed foreach packet include (1) decoding encoding keys, (2) performing lookupsfor packets identified by encoding keys, (3) replacing encoding keyswith corresponding portions of packets identified by encoding keys, and(4) storing packets in a content store. It will be appreciated that REdecoding is scaled up in a manner similar to RE encoding (and, thus, adetailed description of such scaling is omitted for brevity).

As a result, each decoder 312 is performing some RE decoding functionsat every stage. This is illustrated in FIG. 4, where the exemplarydistribution 420 depicts distribution of RE decoding functions acrossdifferent processing stages for an exemplary implementation of REdecoding middlebox 212 _(D) having three decoders (denoted as Decoder 1,Decoder 2, and Decoder 3). The exemplary implementation of RE decodingmiddlebox 212 _(D) supports three packet classes denoted as RED, BLUE,and GREEN, where the RED packet class has a first decoder list (Decoder3, Decoder 2, Decoder 1), the BLUE packet class has a second decoderlist (Decoder 1, Decoder 3, Decoder 2), and the GREEN packet class has athird decoder list (Decoder 2, Decoder 1, Decoder 3). In Stage 1 ofexemplary distribution 420,

Decoder 3 decodes encoding keys and performs packet lookups for the REDpacket, Decoder 1 decodes encoding keys and performs packet lookups forthe BLUE packet, and Decoder 2 decodes encoding keys and performs packetlookups for the GREEN packet. In Stage 2 of exemplary distribution 420,Decoder 2 decodes encoding keys and performs packet lookups for the REDpacket, Decoder 3 decodes encoding keys and performs packet lookups forthe BLUE packet, and Decoder 1 decodes encoding keys and performs packetlookups for the GREEN packet. In Stage 3 of exemplary distribution 420,Decoder 1 decodes encoding keys and performs packet lookups for the REDpacket and then also stores the RED packet, Decoder 2 decodes encodingkeys and performs packet lookups for the BLUE packet and then alsostores the BLUE packet, and Decoder 3 decodes encoding keys and performspacket lookups for the GREEN packet and then also stores the GREENpacket.

It is noted that one or more additional features may be provided tofurther control scaling of processing and memory related to providing REencoding or decoding functions.

In one embodiment, potential increases in bandwidth usage within thefirst cloud 110 ₁ and the second cloud 110 ₂ due to use of RE encodingmiddlebox 112 _(E) and RE decoding middlebox 112 _(D) (e.g., where eachpacket is directed to traverse each encoder 212 of RE encoding middlebox200 _(E) and each decoder 312 of RE decoding middlebox 300 _(D)),respectively, may be controlled using one or more tunable parametersadapted for varying the amount of bandwidth used or the amount of memoryscaled. For example, four RE middleboxes may be used to provide ascaling factor of two for memory, while network traffic is only allowedto flow through two of the RE middleboxes. It will be appreciated thatother levels of scaling may be supported.

In one embodiment, a capability for dynamically adding and removing dataprocessors (e.g., encoders 212 in the case of RE encoding middlebox 200_(E) and decoders 312 in the case of RE decoding middlebox 300 _(D)) maybe provided. In this embodiment, when a new data processor is added, thenew data processor starts receiving traffic and, thus, begins to addpackets to its content store for use in performing RE functions. In thisembodiment, when an existing data processor is removed, the contentstore of the data processor may be dropped or may be distributed acrosssome or all of the remaining data processors.

In one embodiment, Bloom filters may be used to reduce disk lookups. Itis noted that, for a relatively large content store, the associatedfingerprint table may not fit in memory. In that case, at least part ofthe fingerprint table would have to be maintained on disk. This isundesirable, because disk lookup operations are expensive compared tomemory lookup operations. Accordingly, in one embodiment, Bloom filtersmay be leveraged to reduce disk lookups. As opposed to hash tables,Bloom filters are space-efficient data structures and can fit in memory.If a fingerprint is present, then Bloom filter lookups would besuccessful; however, if the fingerprint is not present, then Bloomfilter lookups may still be successful (e.g., case of false positives).

Thus, the Bloom filters should be configured properly to ensure that theprobability of false positive is low. In this way, it is possible toensure with high probability that lookups go to disk when thefingerprint is present in the fingerprint table. When the fingerprint ispresent, the corresponding matched region is determined. As discussedearlier, the match expansion function gets split almost equally acrossthe encoders 212. Thus, by using such Bloom filters, disk I/O operationsmay be balanced among the encoders 212.

In one embodiment, RE encoding middlebox 112 _(E) and RE decodingmiddlebox 112 _(D) are configured to support chunk-match REcapabilities. This is depicted and described with respect to FIGS. 5 and6.

FIG. 5 depicts an exemplary embodiment of an RE encoding middlebox forchunk-match RE. More specifically, FIG. 5 depicts an exemplaryembodiment of RE encoding middlebox 112 _(E) for chunk-match RE (denotedas RE encoding middlebox 500 _(E)).

It is noted that the chunk-match RE approach is similar to the max-matchRE approach that is depicted and described with respect to FIG. 2 andFIG. 3, except that chunks of packets (rather than the packets) arestored and used for RE encoding. Accordingly, the RE encoding middlebox500 _(E) for chunk-match RE is similar to the RE encoding middlebox 200_(E) for max-match RE.

The RE encoding middlebox 500 _(E) includes a classifier 510, aclassification-to-encoders mapping table 511, a plurality of encoders512 ₁-512 _(N) (collectively, encoders 512), and a merger 515. Theencoders 512 ₁-512 _(N) include a plurality of content stores 513 ₁-513_(N) (collectively, content stores 513), a plurality of fingerprinttables 514 ₁-514 _(N) (collectively, fingerprint tables 514), and aplurality of hash region mapping tables 516 ₁-516 _(N) (collectively,hash region mapping table 516), respectively.

The classifier 510 is configured to communicate with each of theencoders 512. The merger 515 also is configured to communicate with eachof the encoders 512. The encoders 512 are configured to communicate witheach other and it is noted that, although primarily depicted ascommunicating with each other serially (illustratively, encoder 512 ₁communicating with encoder 512 ₂, and so forth, as well as in theopposite order), in at least some embodiments any encoder 512 maycommunicate with any other encoder 512 directly (i.e., withouttraversing other encoders 512) or indirectly without traversing thedepicted order of encoders 512.

In general, the configuration/operation of classifier 510,classification-to-encoders mapping table 511, encoders 512, and merger515 of FIG. 5 is similar to the configuration/operation of classifier210, classification-to-encoders mapping table 211, encoders 212, andmerger 215 of FIG. 2, respectively. However, rather than the encoders512 being configured to store packets classified by the classifier 510,the encoders 512 are configured to split packets classified by theclassifier 510 into chunks and to store the chunks (rather than thepackets from which the chunks are generated) in the content stores 513of the encoders 512. In one embodiment, for a packet in a given packetclass, the first encoder 512 in the encoders list for the given packetclass is responsible for splitting the packet into chunks. The chunks ofthe packets may be handled by the encoders 512 in any suitable manner.

In one embodiment (as depicted in FIG. 5), the chunk storing andprocessing responsibilities are split across the encoders 512 based onhash regions.

In one embodiment, each encoder 512 ₁-512 _(N) is assigned a hashregion, respectively. In one embodiment, first encoder 512 ₁ is assigneda hash region [0.0-a], second encoder 512 ₂ is assigned a hash region[a-b], and so forth until next-to-last encoder 512 _(N−1) is assigned ahash region [(n−2)-(n−1)] and last encoder 512 _(N) is assigned a hashregion [(n−1)-1.0]. It is noted that these hash regions are merelyexemplary and that any suitable numbers of hash regions of any suitablesize may be assigned to encoders 512. It is noted that, althoughprimarily depicted and described with respect to embodiments in whicheach encoder 512 has only a single hash region assigned thereto, one ormore encoders 512 may have multiple hash regions assigned thereto.

In one embodiment, the encoders 512 are configured such that (1) anencoder 512 stores a chunk if a hash computed for the chunk falls withinthe hash region assigned to the encoder 512 and (2) an encoder 512performs a lookup for a chunk if the chunk has an associated hash thatfalls within the hash region assigned to the encoder 512.

In one embodiment, mappings of the hash regions to the encoders 512responsible for the hash regions are maintained in the hash regionmapping tables 516 ₁-516 _(N) (i.e., each encoder 512 has informationindicative of which hash regions map to which encoders 512). It is notedthat, although primarily depicted and described with respect toembodiments in which mappings of the hash regions to the encoders 512responsible for the hash regions are maintained using N hash regionmapping tables 516 ₁-516 _(N) implemented on the encoders 512 ₁-512_(N), respectively, the mappings of the hash regions to the encoders 512responsible for the hash regions may be maintained using a single hashregion mapping table that is accessible to each of the encoders 512 orusing multiple hash region mapping tables accessible to respectivesubsets of the encoders 512.

The operation of RE encoding middlebox 500 _(E) may be better understoodby considering the manner in which a packet is processed for RE encodingwhen received at RE encoding middlebox 500 _(E). The classifier 510classifies the packet into an associated packet class. The classifier510 provides the packet to a first encoder 512 in the encoders listspecified for the packet class as determined by the classifier 510 fromthe classification-to-encoders mapping table 511. The first encoder 512splits the packet into chunks. The first encoder 512 computes respectivehashes for each of the chunks. The first encoder 512 performsfingerprint lookups for any chunks having hashes falling within the hashregion assigned to the first encoder 512. The first encoder 512 performsencoding of the packet for each chunk having a hash falling within thehash region assigned to the first encoder 512 (i.e., for eachfingerprint match found for each chunk for which the first encoder 512is responsible, the matched chunk of the packet is replaced with anassociated encoding key). The first encoder 512 then selects the nextencoder 512 to which the packet is to be provided. The first encoder 512selects the next encoder 512 to which the packet is to be provided basedon (1) the hashes for the remaining chunks of the packet (i.e., the hashor hashes identified by the first encoder 512, but falling outside ofthe hash region for which the first encoder 512 is responsible), (2) themappings of the hash regions to the encoders 512 responsible for thehash regions (as specified in the hash region mapping tables 516 of thefirst encoder 512), and (3) the encoders list for the packet class (asspecified in the packet itself or available from theclassification-to-encoders mapping table 511). For example, the firstencoder 512 may (1) search its hash region mapping table 516, using theremaining hashes of the packet, in order to identify one or more otherencoders 512 responsible for one or more of the remaining hashes of thepacket (where the remaining hashes of the packet are those hashes thatare computed by the first encoder 512 but which fall outside of the hashregion for which the first encoder 512 is responsible) and (2) selectthe next encoder 512 from the one or more other encoders 512 based onthe encoders list for the packet class. For example, the first encoder512 may select the identified other encoder 512 that is next on theencoders list for the packet class. The next encoder 512 then (1)performs encoding of the packet for each chunk having a hash fallingwithin the hash region assigned to the next encoder 512 and (2)determines the next element to which the packet is to be propagated(another encoder 512 or merger 515). The encoding of the packetcontinues in this manner until the packet is fully encoded and providedto the merger 515. It is noted that use of the hash region mappingtables 516 may obviate the need for the packet to be passed through allof the encoders 512 (e.g., where some of the encoders 512 haveassociated hash regions that are not applicable to any of the chunks ofthe packet), thereby resulting in a reduction in bandwidth usage inorder to encode the packet. It is noted that, although the foregoingdescription assumes that multiple encoders 512 will be used to encode apacket (for purposes of illustrating use of multiple encoders 512 toencode a packet), it is possible that a packet may be fully encoded bythe first encoder 512 and passed directly from the first encoder 512 tothe merger 515.

For example, consider the case of an RE encoding middlebox 500 _(E)having three encoders 512 ₁-512 ₃. In this example, the hash regions maybe assigned to the encoders 512 as follows: encoder 512 ₁ (hash region0.0-0.3), encoder 512 ₂ (hash region 0.3-0.6), and encoder 512 ₃ (hashregion 0.6-1.0). In this example, encoder 512 ₁ performs hash lookupsand stores hashes only for chunks having hashes in the 0.0-0.3 hashregion, encoder 512 ₂ performs hash lookups and stores hashes only forchunks having hashes in the 0.3-0.6 hash region, and encoder 512 ₃performs hash lookups and stores hashes only for chunks having hashes inthe 0.6-1.0 hash region. Thus, the RE operations can be balanced acrossthe three encoders 512.

In this manner, the chunk lookups and the chunk stores may bedistributed across the encoders 512 in any suitable manner (e.g.,equally, nearly equally, or in any other suitable manner) by splittingthe hash regions appropriately.

In one embodiment, the hash regions may be dynamically monitored andreconfigured. This may be performed in a manner for ensuring that thechunk lookups and the chunk stores remain distributed across theencoders 512. In one embodiment, statistics are maintained regarding themanner in which the chunk hashes are falling into different hash regions(e.g., the load on the hash regions) and, based on such statistics, thehash regions may be dynamically reconfigured. The dynamicreconfiguration may include change the sizes of the hash regionsassigned to the encoders 512, combining hash regions, splitting hashregions, removing one or more encoders 512 and reassigning hash regions,adding one or more encoders 512 and reassigning hash regions, or thelike, as well as various combinations thereof.

In one embodiment, dynamic addition or removal of encoders 512 to/fromRE encoding middlebox 500 _(E) may be supported. The hash regions of oneor more of existing encoders 512 of RE encoding middlebox 500 _(E) maybe modified when a new encoder 512 is added to RE encoding middlebox 500_(E) and when an existing encoder is removed from RE encoding middlebox500 _(E). For example, if the RE encoding middlebox 500 _(E) includesfour encoders 512 having hash regions of [0.0-0.25], [0.25-0.50],[0.50-0.75], and [0.75-1.0], respectively, and a new encoder 512 isadded, the new encoder 512 may be assigned responsibility for each ofhash regions of [0.2-0.25], [0.45-0.50], [0.70-0.75], and [0.95-1.0](i.e., taking responsibility for only a small portion of the existinghash regions of each of the existing encoders). For example, if the REencoding middlebox 500 _(E) includes four encoders 512 having hashregions of [0.0-0.25], [0.25-0.50], [0.50-0.75], and [0.75-1.0],respectively, and the fourth encoder 512 which is responsible for thehash region of [0.75-1.0] is removed from RE encoding middlebox 500_(E), the first encoder 512 may be assigned responsibility for hashregion [0.75-0.83], the second encoder 512 may be assignedresponsibility for hash region [0.84-0.92], and the third encoder 512may be assigned responsibility for hash region [0.93-1.0]. It is notedthat the foregoing examples are merely exemplary and that moresophisticated policies may be applied for controlling distribution ofhash regions to encoders 512.

In one embodiment (which is omitted for purposes of clarity), the chunkstoring and processing responsibilities are split across the encoders512 without using hash regions. In one embodiment, each chunk of a givenpacket is stored in the content store 513 of the encoder 512 which splitthe packet into the chunks (i.e., the first encoder 512 in the encoderslist associated with the packet class of the packet). In one embodiment,since hash regions are not used, each packet is required to traverseeach of the encoders 512 in the encoders list for the packet class ofthe packet, such that the hashes of each of the chunks can be checked bythe encoders 512 for RE encoding of the packet.

FIG. 6 depicts an exemplary embodiment of an RE decoding middlebox forchunk-match RE. More specifically, FIG. 6 depicts an exemplaryembodiment of RE decoding middlebox 112 _(D) for chunk-match RE (denotedas RE decoding middlebox 600 _(D)).

It is noted that the chunk-match RE approach is similar to the max-matchRE approach that is depicted and described with respect to FIG. 2 andFIG. 3, except that chunks of packets (rather than the packets) arestored and used for RE encoding. Accordingly, the RE decoding middlebox600 _(E) for chunk-match RE is similar to the RE decoding middlebox 300_(D) for max-match RE.

It is further noted that the RE decoding middlebox 600 _(D) of FIG. 6 isconfigured to operate in a manner similar to the RE encoding middlebox500 _(E) of FIG. 5, with the RE decoding middlebox 600 _(D) performingRE decoding functions complementary to the RE encoding functionsperformed by RE encoding middlebox 500 _(E).

The RE decoding middlebox 600 _(D) includes a classifier 610, aclassification-to-decoders mapping table 611, a plurality of decoders612 ₁-612 _(N) (collectively, decoders 612), and a merger 615. Thedecoders 612 ₁-612 _(N) include a plurality of content stores 613 ₁-613_(N) (collectively, content stores 613) and a plurality of hash regionmapping tables 616 ₁-616 _(N) (collectively, hash region mapping tables616), respectively.

The classifier 610 is configured to communicate with each of thedecoders 612. The merger 615 also is configured to communicate with eachof the decoders 612. The decoders 612 are configured to communicate witheach other and it is noted that, although primarily depicted ascommunicating with each other serially (illustratively, decoder 612 ₁communicating with decoder 612 ₂, and so forth, as well as in theopposite order), in at least some embodiments any decoder 612 maycommunicate with any other decoder 612 directly (i.e., withouttraversing other decoders 612) or indirectly without traversing thedepicted order of decoders 612.

In general, the configuration/operation of classifier 610,classification-to-decoders mapping table 611, decoders 612, and merger615 of FIG. 6 is similar to the configuration/operation of classifier310, classification-to-decoders mapping table 311, decoders 312, andmerger 315 of FIG. 3, respectively. However, rather than the decoders612 being configured to store packets classified by the classifier 610,the decoders 612 are configured to split packets classified by theclassifier 610 into chunks and to store the chunks (rather than thepackets from which the chunks are generated) in the content stores 613of the decoders 612. In one embodiment, for a packet in a given packetclass, the first decoder 612 in the decoders list for the given packetclass is responsible for splitting the packet into chunks. The chunks ofthe packets may be handled by the decoders 612 in any suitable manner.

In one embodiment (as depicted in FIG. 6), the chunk storing andprocessing responsibilities are split across the decoders 612 based onhash regions.

In one embodiment, each decoder 612 ₁-612 _(N) is assigned a hashregion, respectively. In one embodiment, first decoder 612 ₁ is assigneda hash region [0.0-a], second decoder 612 ₂ is assigned a hash region[a-b], and so forth until next-to-last decoder 612 _(N−1) is assigned ahash region [(n−2)-(n−1)] and last decoder 612 _(N) is assigned a hashregion [(n−1)-1.0]. It is noted that these hash regions are merelyexemplary and that any suitable numbers of hash regions of any suitablesize may be assigned to decoders 612. It is noted that, althoughprimarily depicted and described with respect to embodiments in whicheach decoder 612 has only a single hash region assigned thereto, one ormore decoders 612 may have multiple hash regions assigned thereto.

In one embodiment, the decoders 612 are configured such that (1) adecoder 612 stores a chunk if a hash computed for the chunk falls withinthe hash region assigned to the decoder 612 and (2) a decoder 612 onlyperforms a lookup for a chunk if the chunk has an associated hash thatfalls within the hash region assigned to the decoder 612.

In one embodiment, mappings of the hash regions to the decoders 612responsible for the hash regions are maintained in the hash regionmapping tables 616 ₁-616 _(N) (i.e., each decoder 612 has informationindicative of which hash regions map to which decoders 612). It is notedthat, although primarily depicted and described with respect toembodiments in which mappings of the hash regions to the decoders 612responsible for the hash regions are maintained using N hash regionmapping tables 616 ₁-616 _(N) implemented on the decoders 612 ₁-612_(N), respectively, the mappings of the hash regions to the decoders 612responsible for the hash regions may be maintained using a single hashregion mapping table that is accessible to each of the decoders 612 orusing multiple hash region mapping tables accessible to respectivesubsets of the decoders 612.

The operation of RE decoding middlebox 600 _(D) may be better understoodby considering the manner in which a packet is processed for RE decodingwhen received at RE decoding middlebox 600 _(D). The classifier 610classifies the packet into an associated packet class. The classifier610 provides the packet to a first decoder 612 in the decoders listspecified for the packet class as determined by the classifier 610 fromthe classification-to-decoders mapping table 611. The first decoder 612decodes the encoding keys included within the packet. The encoding keysare associated with chunks of packets stored the content stores 613 ofone or more of the decoders 612. The encoding keys may be hashes of thechunks as computed by RE encoding middlebox 112 _(E). The first decoder612 performs lookups to its content store 613 for each of the chunkshaving respective hashes falling within the hash region assigned to thefirst decoder 612. The first decoder 612 performs decoding of the packetby replacing (1) the encoding keys for each of the chunks havingrespective hashes falling within the hash region assigned to the firstdecoder 612 with (2) the chunks corresponding to the encoding keys forthe each of the chunks having respective hashes falling within the hashregion assigned to the first decoder 612. The first decoder 612 thenselects the next decoder 612 to which the packet is to be provided. Thefirst decoder 612 selects the next decoder 612 to which the packet is tobe provided based on (1) the hashes for the remaining encoding keys ofthe packet (i.e., the hash or hashes identified by the first decoder612, but falling outside of the hash region for which the first decoder612 is responsible), (2) the mappings of the hash regions to thedecoders 612 responsible for the hash regions (as specified in the hashregion mapping table 616 of the first decoder 612), and (3) the decoderslist for the packet class (as specified in the packet itself oravailable from the classification-to-decoders mapping table 611). Forexample, the first decoder 612 may (1) search its hash region mappingtable 616, using the remaining hashes of the packet, in order toidentify one or more other decoders 612 responsible for one or more ofthe remaining hashes of the packet (where the remaining hashes of thepacket are those hashes that are computed by the first decoder 612 butwhich fall outside of the hash region for which the first decoder 612 isresponsible) and (2) select the next decoder 612 from the one or moreother decoders 612 based on the decoders list for the packet class. Forexample, the first decoder 612 may select the identified other decoder612 that is next on the decoders list for the packet class. The nextdecoder 612 then (1) performs decoding of the packet for each chunkhaving a hash falling within the hash region assigned to the nextdecoder 612 and (2) determines the next element to which the packet isto be propagated (another decoder 612 or merger 615). The decoding ofthe packet continues in this manner until the packet is fully decoded.It is noted that use of the hash region mapping tables 616 may obviatethe need for the packet to be passed through all of the decoders 612(e.g., where some of the decoders 612 have associated hash regions thatare not applicable to any of the chunks of the packet), therebyresulting in a reduction in bandwidth usage in order to decode thepacket. It is noted that, although the foregoing description assumesthat multiple decoders 612 will be used to decode a packet (for purposesof illustrating use of multiple decoders 612 to decode a packet), it ispossible that a packet may be fully decoded by the first decoder 612 andpassed directly from the first decoder 612 to the merger 615.

For example, consider the case of an RE decoding middlebox 600 _(D)having three decoders 612 ₁-612 ₃. In this example, the hash regions maybe assigned to the decoders 612 as follows: decoder 612 ₁ (hash region[0.0-0.3]), decoder 6122 (hash region [0.3-0.6]), and decoder 6123 (hashregion [0.6-1.0]). In this example, decoder 612 ₁ performs hash lookupsand stores hashes only for chunks having hashes in the [0.0-0.3] hashregion, decoder 612 ₂ performs hash lookups and stores hashes only forchunks having hashes in the [0.3-0.6] hash region, and decoder 612 ₃performs hash lookups and stores hashes only for chunks having hashes inthe [0.6-1.0] hash region. Thus, the RE operations can be balancedacross the three decoders 612.

In this manner, the chunk lookups and the chunk stores may bedistributed across the decoders 612 in any suitable manner (e.g.,equally, nearly equally, or in any other suitable manner) by splittingthe hash regions appropriately.

As described with respect to RE encoding middlebox 500 _(E) of FIG. 5,RE decoding middlebox 600D of FIG. 6 may support additional managementfunctions (e.g., dynamic monitoring and reconfiguration of hash regions,dynamic addition or removal of decoders 612 to/from RE decodingmiddlebox 600, or the like, as well as various combinations thereof).

In one embodiment (which is omitted for purposes of clarity), the chunkstoring and processing responsibilities are split across the decoders612 without using hash regions. In one embodiment, since hash regionsare not used, each packet is required to traverse each of the decoders612 in the decoders list for the packet class of the packet, such thatthe hashes of each of the chunks of the packet can be checked by thedecoders 612 for RE decoding of the packet.

In one embodiment, RE encoding middlebox 112 _(E) and RE decodingmiddlebox 112 _(D) are configured to leverage Distributed Hash Tables(DHTs) for performing RE encoding and decoding functions, respectively.In general, a DHT is a distributed data structure that provides lookupand store functions similar to a hash table, where any participatingnode can efficiently retrieve the value associated with a key.Additionally, a DHT generally scales well to a large number of nodes andcan handle node additions/removals relatively easily.

The DHT-based max-match RE approach is similar to the max-match REapproach that is depicted and described with respect to FIGS. 2 and 3,except that the fingerprint tables 213 of the encoders 212 aremaintained as a DHT across the encoders 212 and, similarly, thefingerprint tables 313 of the decoders 312 are maintained as a DHTacross the decoders 312. The configuration of RE encoding middlebox 112_(E) and RE decoding middlebox 112 _(D) to leverage a DHT for max-matchRE is depicted and described with respect to FIGS. 7 and 8,respectively.

FIG. 7 depicts an exemplary embodiment of an RE encoding middlebox forDHT-based max-match RE.

The RE encoding middlebox 700 _(E) for DHT-based max-match RE is similarto the RE encoding middlebox 200 _(E) for max-match RE.

The RE encoding middlebox 700 _(E) includes a classifier 710, aplurality of encoders 712 ₁-712 _(N) (collectively, encoders 712), and aDHT 714. The encoders 712 ₁-712 _(N) include a plurality of contentstores 713 ₁-713 _(N) (collectively, content stores 713), respectively.The RE encoding middlebox 700 _(E) also will include a merger (which hasbeen omitted from FIG. 7 for purposes of clarity).

The classifier 710 is configured to communicate with each of theencoders 712. The encoders 712 are configured to communicate with eachother and it is noted that, although primarily depicted as communicatingwith each other serially (illustratively, encoder 712 ₁ communicatingwith encoder 712 ₂, and so forth, as well as in the opposite order), inat least some embodiments any encoder 712 may communicate with any otherencoder 712 directly (i.e., without traversing other encoders 712) orindirectly without traversing the depicted order of encoders 712.

The classifier 710 receives packets and determines classifications ofthe received packets. The classifier 710 assigns the responsibility ofstoring packets and computing fingerprints to encoders 712 based on thepacket classes (e.g., encoder 712 ₁ is responsible for storing packetsand computing fingerprints for the FIRST CLASS, encoder 712 ₂ isresponsible for storing packets and computing fingerprints for theSECOND CLASS, and so forth, with encoder 712 _(N) being responsible forstoring packets and computing fingerprints for the N-th CLASS). The REencoding middlebox 700 _(E) may support any suitable numbers and typesof packet classes which may be based on any suitable criteria. Forexample, classification of received packets by classifier 710 may beperformed in a round-robin manner, using load-balancing based on packetsizes of the packets, or the like. In one embodiment, the set of packetclasses supported by the RE encoding middlebox 700 _(E) is the same asthe set of packet classes supported by the RE decoding middlebox 112_(D). The classifier 710 provides classified packets to the encoders 712in accordance with the assignment of responsibilities to the encoders712 based on the packet classes.

The DHT 714 specifies mappings of fingerprints to packet pointers. InDHT 714, the packet pointer for a given fingerprint includes informationwhich may be used by an encoder 712 to retrieve the packet. The packetpointer includes packet storage location information (i.e., identifyingthe encoder 712 in which the packet is stored) and packet identifierinformation (i.e., the packet identifier of the packet within theencoder 712 in which the packet is stored). This is illustrated in FIG.7, where a first fingerprint (FPI) has associated therewith a firstpacket pointer denoted as Encoder1:ID1 (i.e., the packet associated withFP1 is a packet having packet identifier ID1 that is stored in encoder712 ₁), a second fingerprint (FP2) has associated therewith a secondpacket pointer denoted as Encoder1:ID2 (i.e., the packet associated withFP2 is a packet having packet identifier ID2 that is stored in encoder712 ₁), a third fingerprint (FP3) has associated therewith a thirdpacket pointer denoted as Encoder2:ID1 (i.e., the packet associated withFP3 is a packet having packet identifier ID1 that is stored in encoder712 ₂), and so forth.

The classifier 710 receives a packet and provides the packet to one ofthe encoders 712 based on the packet class of the packet as determinedby the classifier 710 (i.e., the primary encoder 712 assigned for thatpacket class). The primary encoder 712 to which the classifier 710provides the packet is responsible for storing the packet and computingfingerprints for the packet. The primary encoder 712, for each of thecomputed fingerprints, performs a fingerprint lookup in DHT 714 in orderto identify which encoder 712 is storing the packet for the computedfingerprint and to determine the packet identifier of the packet withinthe content store 713 of the encoder 712 that is storing the packet forthe computed fingerprint. The primary encoder 712 performs RE encodingof the packet for any fingerprints identified as being associated withpackets stored locally in the content store 713 of the primary encoder712. The primary encoder 712 then propagates the packet such that it maybe further processed by each of the other encoders 712 identified fromthe DHT 714 based on the fingerprints computed by the primary encoder712.

In one embodiment, the packet is propagated to the other encoders 712serially. In one embodiment, the primary encoder 712 includes within thepacket the list of packet pointers determined by the primary encoder 712from DHT 714, such that each encoder 712 that processes the packet canidentify directly from the packet itself a next encoder 712 to which toprovide the packet. The primary encoder 712 propagates the packet to anext encoder 712. The next encoder 712 receives the packet, parses thelist of packet pointers included within the packet to identify eachpacket pointer that points to its content store 713, and uses theidentified packet pointer(s) to encode the corresponding region(s) ofthe packet. The encoding of a region of the received packet based on amatching region of a stored packet using max-match RE will be understoodat least from the description of FIG. 2. The next encoder 712 thenidentifies a next element to which the packet is to be provided (e.g.,another encoder 712 as determined from list of packet pointers includedwithin the packet, or a merger where the encoder 712 is the finalencoder to process the packet for RE encoding of the packet). Theencoding of the packet continues in this manner until the packet isfully encoded and provided to the merger.

It is noted that if, during expansion of a matching region of the packetfor a first fingerprint, the matching region is determined to cover aregion of the packet associated with a second fingerprint, the pointerfor the second fingerprint may be ignored during encoding of the packet.In this case, where the fingerprint is associated with a packetmaintained in the content store 713 of the encoder 712 that is currentlyprocessing the packet, the encoder 712 that is currently processing thepacket can ignore that next fingerprint in the list of fingerprintscomputed for the received packet and embedded within the receivedpacket. Similarly, in this case, where the fingerprint is associatedwith a packet maintained in the content store of a subsequent encoder712 (i.e., one other than the encoder 712 that is currently processingthe packet), the subsequent encoder 712 can ignore that fingerprint inthe list of fingerprints computed for the received packet and embeddedwithin the received packet. In one such embodiment, that fingerprint maybe removed from the list of fingerprints that is included in thereceived packet, thereby preventing use of that fingerprint when REencoding the receive packet.

It is noted that, although the foregoing description for serial encodingof the packet assumes that multiple encoders 712 will be used to encodethe packet (for purposes of illustrating use of multiple encoders 712 toencode a packet), it is possible that the packet may be fully encoded bythe primary encoder 712 and passed directly from the primary encoder 712to the merger.

In one embodiment, the packet is propagated to the other encoders 712 inparallel. The other encoders 712 perform processing to determineencoding of the packet, but do not actually perform encoding of thepacket. Rather, each of the other encoders 712 determines packetencoding information adapted for use in encoding the packet and providesthe packet encoding information to the primary encoder 712. The primaryencoder 712 receives the packet encoding information from the otherencoders 712 and encodes the packet based on the packet encodinginformation from the other encoders 712 (e.g., performs packet encodingincluding replacement of matched regions with associated encoding keysfor all of the fingerprints computed by primary encoder 712). The packetencoding information that is determined by one of the other encoders 712includes, for each fingerprint for which the other encoder 712 storesthe associated packet in its packet store 713, matched region encodinginformation for the matched region associated with the fingerprint. Thematched region encoding information includes a length of the matchedregion for the fingerprint and the location within the packet at whichthe matched region is located (e.g., matched region offset information).The primary encoder 712 may then use the matched region length valuesand matched region offset values for each of the fingerprints of thereceived packet to perform RE encoding of the received packet. Theprimary encoder 712 then provides the encoded packet to the merger.

It is noted that, by providing the packet to the other encoders 712 inparallel and configuring the primary encoder 712 to perform that actualpacket encoding for all of the matched regions of the packet, theprimary encoder 712 has a view of all matched regions and may comparethe matched regions in a manner for maximizing bandwidth savings (at theexpense of increasing the processing overhead on each of the otherencoders 712).

It is noted that, although primarily depicted and described with respectto embodiments in which the primary encoder 712 is the only encoder 712that computes fingerprints for the packet, in at least one embodimentthe computation of the fingerprints may be performed by multipleencoders 712 (or even each of the encoders 712). This may be used wherethe other encoders 712 process the packet serially or in parallel for REencoding of the packet.

In such embodiments, different ones of the encoders 712 performdifferent sets of RE encoding functions for different packets based onthe packet classes of the packets.

It is noted that the DHT-based max-match RE approach enables computationand storage to be spread out over the various encoders 712 based on thepolicy of the classifier 710 while the DHT 714 provides load balancingof fingerprint lookups and inserts. Here, no permutation of node ordertraversal is required for load balancing, because the DHT 714 providesload balancing.

FIG. 8 depicts an exemplary embodiment of an RE decoding middlebox forDHT-based max-match RE.

The RE decoding middlebox 800 _(D) for DHT-based max-match RE is similarto the RE decoding middlebox 300 _(D) for max-match RE.

The RE decoding middlebox 800 _(D) of FIG. 8 is configured to operate ina manner similar to the RE encoding middlebox 700 _(E) of FIG. 7, withthe RE decoding middlebox 800 _(D) performing RE decoding functionscomplementary to the RE encoding functions performed by RE encodingmiddlebox 700 _(E).

The RE decoding middlebox 800 _(E) includes a classifier 810, aplurality of decoders 812 ₁-812 _(N) (collectively, decoders 812), and aDHT 814. The decoders 812 ₁-812 _(N) include a plurality of contentstores 813 ₁-813 _(N) (collectively, content stores 813), respectively.The RE decoding middlebox 800 _(E) also will include a merger (which hasbeen omitted from FIG. 8 for purposes of clarity).

The classifier 810 is configured to communicate with each of thedecoders 812. The decoders 812 are configured to communicate with eachother and it is noted that, although primarily depicted as communicatingwith each other serially (illustratively, decoder 812 ₁ communicatingwith decoder 812 ₂, and so forth, as well as in the opposite order), inat least some embodiments any decoder 812 may communicate with any otherdecoder 812 directly (i.e., without traversing other decoders 812) orindirectly without traversing the depicted order of decoders 812.

The classifier 810 receives packets and determines classifications ofthe received packets. The classifier 810 assigns the responsibility ofstoring packets and performing encoding key lookups to decoders 812based on the packet classes (e.g., decoder 812 ₁ is responsible forstoring packets and performing encoding key lookups for the FIRST CLASS,decoder 812 ₂ is responsible for storing packets and performing encodingkey lookups for the SECOND CLASS, and so forth, with decoder 812 _(N)being responsible for storing packets and performing encoding keylookups for the N-th CLASS). The RE decoding middlebox 800 _(E) maysupport any suitable numbers and types of packet classes which may bebased on any suitable criteria. For example, classification of receivedpackets by classifier 810 may be performed in a round-robin manner,using load-balancing based on packet sizes of the packets, or the like.In one embodiment, the set of packet classes supported by the REdecoding middlebox 800 _(D) is the same as the set of packet classessupported by the RE encoding middlebox 112 _(E). The classifier 810provides classified packets to the decoders 812 in accordance with theassignment of responsibilities to the decoders 812 based on the packetclasses.

The DHT 814 specifies mappings of encoding keys to packet pointers tostored packets. In DHT 814, the packet pointer for a given encoding keyincludes information which may be used by a decoder 812 to retrieve thepacket for use in replacing the encoding key of the received packet withcontent from the stored packet. The packet pointer includes packetstorage location information for the stored packet (i.e., identifyingthe decoder 812 in which the packet is stored) and packet identifierinformation (i.e., the packet identifier of the stored packet within thedecoder 812 in which the packet is stored). This is illustrated in FIG.8, where a first encoding key (EK1) has associated therewith a firstpacket pointer denoted as Decoder1:ID3 (i.e., the packet associated withEK1 is a packet having packet identifier ID3 that is stored in decoder812 ₁), a second encoding key (EK2) has associated therewith a secondpacket pointer denoted as Decoder1:ID4 (i.e., the packet associated withEK2 is a packet having packet identifier ID4 that is stored in decoder812 ₁), a third encoding key (EK3) has associated therewith a thirdpacket pointer denoted as Decoder2:ID2 (i.e., the packet associated withEK3 is a packet having packet identifier ID2 that is stored in decoder812 ₂), and so forth.

The classifier 810 receives a packet and provides the packet to one ofthe decoders 812 based on the packet class of the packet as determinedby the classifier 810 (i.e., the primary decoder 812 assigned for thatpacket class). The primary decoder 812 to which the classifier 810provides the packet is responsible for performing encoding key lookupsfor the packet. The primary decoder 812, for each of the encoding keysof the received packet, performs an encoding key lookup in DHT 814 inorder to identify which decoder 812 is storing the packet for theencoding key and to determine the packet identifier of the packet withinthe content store 813 of the decoder 812 that is storing the packet forthe encoding key. The primary decoder 812 performs RE decoding of thepacket for any encoding keys identified as being associated with packetsstored locally in the content store 813 of the primary decoder 812. Theprimary decoder 812 then propagates the packet such that it may befurther processed by each of the other decoders 812 identified from theDHT 814 based on the encoding keys identified by the primary decoder812.

In one embodiment, the packet is propagated to the other decoders 812serially. In one embodiment, the primary decoder 812 includes within thepacket the list of packet pointers determined by the primary decoder 812from DHT 814, such that each decoder 812 that processes the packet canidentify directly from the packet itself a next decoder 812 to which toprovide the packet. The primary decoder 812 propagates the packet to anext decoder 812. The next decoder 812 receives the packet, parses thelist of packet pointers included within the packet to identify eachpacket pointer that points to its content store 813, and uses theidentified packet pointer(s) to decode the corresponding region(s) ofthe packet. The decoding of a region of the received packet usingmax-match RE will be understood at least from the description of FIG. 3.The next decoder 812 then identifies a next element to which the packetis to be provided (e.g., another decoder 812 as determined from the listof packet pointers included within the packet, or a merger where thedecoder 812 is the final decoder to process the packet for RE decodingof the packet). The decoding of the packet continues in this manneruntil the packet is fully decoded and provided to the merger. The finaldecoder 812 to perform RE decoding of the packet stores the decodedpacket in its content store 813. It is noted that, although theforegoing description for serial decoding of the packet assumes thatmultiple decoders 812 will be used to decode the packet (for purposes ofillustrating use of multiple decoders 812 to decode a packet), it ispossible that the packet may be fully decoded by the primary decoder 812and passed directly from the primary decoder 812 to the merger.

In one embodiment, the packet is propagated to the other decoders 812 inparallel. The other decoders 812 perform processing to determinedecoding of the packet, but do not actually perform decoding of thepacket (i.e., the decoders 812 do not replace the encoding keys withcorresponding portions of packets indicated by the encoding keys).Rather, each of the other decoders 812 determines packet decodinginformation adapted for use in decoding the packet and provides thepacket decoding information to the primary decoder 812. The primarydecoder 812 receives the packet decoding information from the otherdecoders 812 and decodes the packet based on the packet decodinginformation from the other decoders 812 (e.g., performs packet decodingincluding replacement of encoding keys with associated matched regionsof stored packets for all of the encoding keys identified by primarydecoder 812). The packet decoding information that is determined by oneof the other decoders 812 includes, for each encoding key for which theother decoder 812 stores the associated packet in its packet store 813,the content to be used to replace the encoding key in the packet. Theprimary decoder 812 may then use the content received for each of thefingerprints of the packet to perform RE decoding of the packet. Theprimary decoder 812 then provides the encoded packet to the merger. Itis noted that, although primarily depicted and described with respect toembodiments in which the primary decoder 812 propagates the packet tothe other decoders 812 in parallel and the other decoders 812 returnpacket decoding information to the primary decoder 812, in at least oneembodiment the primary decoder 812 is configured to propagateinformation other than the packet itself to the other decoders 812(e.g., the respective encoding key(s) to be processed by the otherdecoders 812 or the like) and the other decoders 812 return packetdecoding information to the primary decoder 812.

It is noted that, although primarily depicted and described with respectto embodiments in which the primary decoder 812 is the only decoder 812that identifies the encoding keys for the packet, in at least oneembodiment the identification of the encoding keys may be performed bymultiple decoders 812 (or even each of the decoders 812). This may beused where the other decoders 812 process the packet serially or inparallel for RE decoding of the packet.

In such embodiments, different ones of the decoders 812 performdifferent sets of RE decoding functions for different packets based onthe packet classes of the packets.

It is noted that the DHT-based max-match RE approach enables computationand storage to be spread out over the various decoders 812 based on thepolicy of the classifier 810 while the DHT 814 provides load balancingof encoding key lookups. Here, no permutation of node order traversal isrequired for load balancing, because the DHT 814 provides loadbalancing. The DHT-based chunk-match RE approach is similar to thechunk-match RE approach that is depicted and described with respect toFIGS. 5 and 6, except that the fingerprint tables 513 and hash regionmapping tables 516 of the encoders 512 are maintained as a DHT acrossthe encoders 512 and, similarly, the fingerprint tables 613 and hashregion mapping tables 616 of the decoders 612 are maintained as a DHTacross the decoders 612. The configuration of RE decoding middlebox 112_(E) and RE decoding middlebox 112 _(D) to leverage a DHT forchunk-match RE is depicted and described with respect to FIGS. 9 and 10,respectively.

FIG. 9 depicts an exemplary embodiment of an RE encoding middlebox forDHT-based chunk-match RE.

The RE encoding middlebox 900 _(E) for DHT-based chunk-match RE issimilar to the RE encoding middlebox 500 _(E) for chunk-match RE.

The RE encoding middlebox 900 _(E) includes a classifier 910, aplurality of encoders 912 ₁-912 _(N) (collectively, encoders 912), and aDHT 914. The RE encoding middlebox 900 _(E) also will include a merger(which has been omitted from FIG. 9 for purposes of clarity).

The classifier 910 is configured to communicate with each of theencoders 912. The encoders 912 are configured to communicate with eachother and it is noted that, although primarily depicted as communicatingwith each other serially (illustratively, encoder 912 ₁ communicatingwith encoder 912 ₂, and so forth, as well as in the opposite order), inat least some embodiments any encoder 912 may communicate with any otherencoder 912 directly (i.e., without traversing other encoders 912) orindirectly without traversing the depicted order of encoders 912.

The classifier 910 receives packets and determines classifications ofthe received packets. The classifier 910 assigns the responsibility ofchunk computation to encoders 912 based on the packet classes (e.g.,encoder 912 ₁ is responsible for chunk computation for the FIRST CLASS,encoder 912 ₂ is responsible for chunk computation for the SECOND CLASS,and so forth, with encoder 912 _(N) being responsible for chunkcomputation for the N-th CLASS). The RE encoding middlebox 900 _(E) maysupport any suitable numbers and types of packet classes which may bebased on any suitable criteria. For example, classification of receivedpackets by classifier 910 may be performed in a round-robin manner,using load-balancing based on packet sizes of the packets, or the like.In one embodiment, the set of packet classes supported by the REencoding middlebox 900 _(E) is the same as the set of packet classessupported by the RE encoding middlebox 112 _(E). The classifier 910provides classified packets to the encoders 912 in accordance with theassignment of responsibilities to the encoders 912 based on the packetclasses.

The DHT 914 specifies mappings of fingerprints to chunks. In DHT 914,the fingerprint of a chunk is a hash of the chunk, which is then mappedto the chunk. In other words, the chunks themselves are maintained inthe DHT 914. This is illustrated in FIG. 9, where a first fingerprint(FPI) for chunk 1 (which is a hash of chunk 1) is mapped to chunk 1, asecond fingerprint (FP2) for chunk 2 (which is a hash of chunk 2) ismapped to chunk 2, a third fingerprint (FP3) for chunk 3 (which is ahash of chunk 3) is mapped to chunk 3, and so forth.

The classifier 910 receives a packet and provides the packet to one ofthe encoders 912 based on the packet class of the packet as determinedby the classifier 910. The encoder 912 computes chunks for the packet.The encoder 912 computes fingerprints for the chunks of the packet. Theencoder 912 performs fingerprint lookups and insertions, using DHT 914,for the chunks of the packets. The encoder 912 performs RE encoding ofthe packet based on the fingerprint lookups for the chunks of thepacket. The encoder 912 provides the encoded packet to the merger.

In such embodiments, different ones of the encoders 912 perform REencoding functions for different packets based on the packet classes ofthe packets.

It is noted that the DHT-based chunk-match RE approach enablescomputation and storage to be spread out over the various encoders 912based on the policy of the classifier 910 while the DHT 914 (whichprovides a larger hash table) provides load balancing of fingerprintlookups and insertions.

FIG. 10 depicts an exemplary embodiment of an RE decoding middlebox forDHT-based chunk-match RE.

The RE decoding middlebox 1000 _(D) for DHT-based chunk-match RE issimilar to the RE decoding middlebox 600 _(D) for chunk-match RE.

The RE decoding middlebox 1000 _(D) of FIG. 10 is configured to operatein a manner similar to the RE encoding middlebox 900 _(E) of FIG. 9,with the RE decoding middlebox 1000 _(D) performing RE decodingfunctions complementary to the RE encoding functions performed by REencoding middlebox 900 _(E).

The RE decoding middlebox 1000 _(D) includes a classifier 1010, aplurality of decoders 1012 ₁-1012 _(N) (collectively, decoders 1012),and a DHT 1014. The RE decoding middlebox 1000 _(D) also will include amerger (which has been omitted from FIG. 10 for purposes of clarity).

The classifier 1010 is configured to communicate with each of thedecoders 1012. The decoders 1012 are configured to communicate with eachother and it is noted that, although primarily depicted as communicatingwith each other serially (illustratively, decoder 1012 ₁ communicatingwith decoder 1012 ₂, and so forth, as well as in the opposite order), inat least some embodiments any decoder 1012 may communicate with anyother decoder 1012 directly (i.e., without traversing other decoders1012) or indirectly without traversing the depicted order of decoders1012.

The classifier 1010 receives packets and determines classifications ofthe received packets. The classifier 1010 assigns the responsibility ofchunk computation to decoders 1012 based on the packet classes (e.g.,decoder 1012 ₁ is responsible for chunk computation for the FIRST CLASS,decoder 1012 ₂ is responsible for chunk computation for the SECONDCLASS, and so forth, with decoder 1012 _(N) being responsible for chunkcomputation for the N-th CLASS). The RE decoding middlebox 1000 _(D) maysupport any suitable numbers and types of packet classes which may bebased on any suitable criteria. For example, classification of receivedpackets by classifier 1010 may be performed in a round-robin manner,using load-balancing based on packet sizes of the packets, or the like.In one embodiment, the set of packet classes supported by the REdecoding middlebox 1000 _(D) is the same as the set of packet classessupported by the RE encoding middlebox 112 _(E). The classifier 1010provides classified packets to the decoders 1012 in accordance with theassignment of responsibilities to the decoders 1012 based on the packetclasses.

The DHT 1014 specifies mappings of encoding keys to chunks. In DHT 1014,the encoding key of a chunk is a hash of the chunk, which is then mappedto the chunk. In one embodiment, the chunks themselves are maintained inthe DHT 1014. This is illustrated in FIG. 10, where a first encoding key(EK1) for chunk 1 (which is a hash of chunk 1) is mapped to chunk 1, asecond encoding key (EK2) for chunk 2 (which is a hash of chunk 2) ismapped to chunk 2, a third encoding key (EK3) for chunk 3 (which is ahash of chunk 3) is mapped to chunk 3, and so forth.

The classifier 1010 receives a packet and provides the packet to one ofthe decoders 1012 based on the packet class of the packet as determinedby the classifier 1010. For encoded regions of the packet, the decoder1012 decodes the packet by identifying the encoding keys in the encodedpacket, using the encoding keys to retrieve the chunks from the DHT1014, and replacing the encoding keys with the chunks retrieved from theDHT 1014. For un-encoded regions of the packet, the decoder 1012computes hashes of the chunks of the un-encoded regions of the packetand inserts the chunks into the DHT 1014 (e.g., for each chunk,inserting a record including a hash of the chunk as the encoding key andthe chunk itself mapped to the encoding key). The decoder 1012 providesthe decoded packet to the merger.

In such embodiments, different ones of the decoders 1012 perform REdecoding functions for different packets based on the packet classes ofthe packets.

It is noted that the DHT-based chunk-match RE approach enablescomputation and storage to be spread out over the various decoders 1012based on the policy of the classifier 1010 while the DHT 1014 (whichprovides a larger hash table) provides load balancing of encoding keylookups and insertions.

It is noted that, although primarily depicted and described with respectto embodiments in which the chunks themselves are stored in the DHT1014, it at least one embodiment the DHT 1014 may store mappings ofencoding keys to the storage locations of the associated chunks (e.g.,specified in terms of an identifier of the decoder 1012 storing thechunk and the identifier of the chunk within the decoder 812 storing thechunk).

Returning now to FIG. 1, it may be seen, from FIG. 2-FIG. 10, that REencoding middlebox 112 _(E) includes various elements (e.g., aclassifier, encoders, and a merger and, in some cases, other elements)and, similarly, that RE decoding middlebox 112 _(D) includes variouselements (e.g., a classifier, decoders, and a merger and, in some cases,other elements). The RE encoding middlebox 112 _(E) and RE decodingmiddlebox 112 _(D) may be referred to collectively as RE processingmiddleboxes 112 (and, thus, the encoders of RE encoding middlebox 112_(E) and the decoders of RE decoding middlebox 112 _(D) may be referredto collectively as RE data processors or RE data processing modules).The elements of an RE processing middlebox 112 may be implemented withina cloud site 110 in any suitable manner. For example, the classifier,each of the RE data processors, and the merger of an RE processingmiddlebox 112 may be implemented using virtual machines (VMs). Forexample, the classifier, each of the RE data processors, and the mergermay be implemented using respective VMs, using a set of VMs where one ormore of the VMs are configured to provide multiple elements (e.g.,multiple RE data processors), or the like. For example, the VMs may beimplemented on the same Central Processing Unit (CPU) of a blade server,on multiple CPUs of the same blade server, on multiple CPUs spreadacross multiple blade servers of the same switch, on multiple CPUsspread across multiple blade servers of multiple switches, or the like,as well as various combinations thereof. Thus, communication betweensuch elements may be supported in any manner suitable for use within acloud environment (e.g., internal communication within a CPU whenmultiple elements are implemented on the same CPU, internalcommunication within a blade server but across CPUs when the elementsare implemented across different CPUs of the same blade server,communications between blade servers of the same switch when theelements are implemented across CPUs of different blade servers,communications between switches of the cloud site when the elements areimplemented across CPUs of different switches, or the like, as well asvarious combinations thereof).

It is noted that, although primarily depicted and described herein withrespect to embodiments in which the various data structures used by theRE data processing modules are stored within the RE data processingmodules, in at least some embodiments one or more of the data structuresof one or more of the RE data processing modules may be stored outsideof the one or more RE data processing modules. For example, such datastructures may include content stores, fingerprint tables, hash regionmapping tables, or the like. Accordingly, depiction and descriptionherein indicating that the various data structures used by the RE dataprocessing modules are stored within the RE data processing modules alsomay represent embodiments in which the information of the datastructures of the RE data processing modules is accessible to theassociated RE data processing modules (e.g., internally or through anysuitable mechanism for retrieving such information from memory, disk, orany other suitable storage module).

FIG. 11 depicts one embodiment of a method for processing a packet forsupporting RE.

The method 1100 includes steps performed by a classifier, a set of REdata processors (which may include use of one or more RE dataprocessors), and a merger.

It will be appreciated that method 1100 represents a general method forimplementing the various functions depicted and described with respectto any of FIGS. 2-10.

It is noted that, although primarily depicted and described herein asbeing performed serially, steps of method 1100 may be performedcontemporaneously or in a different order than depicted in FIG. 11.

At step 1105, method 1100 begins.

At step 1110, the classifier receives the packet. The packet is receivedat an RE encoding middlebox or an RE decoding middlebox. In the case ofan RE encoding middlebox, the classifier receives the packet from anappropriate source (e.g., another network, a network element, a userdevice, or the like). In the case of an RE decoding middlebox, theclassifier receives the packet from the RE encoding middlebox via anetwork.

At step 1115, the classifier determines a packet class of the packet.

At step 1120 (an optional step which may not be performed in someembodiments), the classifier marks the packet class of packet in thepacket. This may include marking the packet with an ordering of RE dataprocessors to be used to process the packet.

At step 1125, the classifier propagates the packet to the set of RE dataprocessors. It is noted that this may include providing the packet toone of the RE data processors, providing multiple portions of the packetto ones of the RE data processors, providing multiple copies of thepacket to ones of the RE data processors, or the like, as well asvarious combinations thereof.

At step 1130, the set of RE data processors receives the packet. It isnoted that this may include receipt of the packet by one of the RE dataprocessors, receipt of multiple portions of the packet by ones of the REdata processors, receipt of multiple copies of the packet by ones of theRE data processors, or the like, as well as various combinationsthereof.

At step 1135, the set of RE data processors processes the packet for REbased on the packet class of the packet. It is noted that this step maybe performed by one or more of the RE data processors. It is furthernoted that the RE data processors may exchange the packet or portions ofthe packet.

At step 1140, the set of RE data processors propagates the packet to themerger.

At step 1145, the merger receives the packet from the set of RE dataprocessors.

At step 1150, the merger forwards the packet. In the case of an REencoding middlebox, the merger forwards the packet via a network towardan RE decoding middlebox. In the case of an RE decoding middlebox, themerger forwards the packet toward an appropriate destination (e.g.,another network, a network element, a user device, or the like).

At step 1155, method 1100 ends.

As noted above, method 1100 generally represents a method forimplementing the various functions depicted and described with respectto any of FIGS. 2-10. Thus, any function or combination of functionsdepicted and described with respect to any of FIGS. 2-10 may beimplemented using any suitable number(s) or type(s) of processes. Insuch embodiments, a process for providing one or more functions depictedand described with respect to any of FIGS. 2-10 may be implemented usinga processor and a memory, where the memory stores instructions which,when executed by the processor, cause the processor to perform thefunctions.

FIG. 12 depicts a high-level block diagram of a computer suitable foruse in performing functions described herein.

The computer 1200 includes a processor 1202 (e.g., a central processingunit (CPU) or other suitable processor(s)) and a memory 1204 (e.g.,random access memory (RAM), read only memory (ROM), and the like).

The computer 1200 also may include a cooperating module/process 1205.The cooperating process 1205 can be loaded into memory 1204 and executedby the processor 1202 to implement functions as discussed herein and,thus, cooperating process 1205 (including associated data structures)can be stored on a computer readable storage medium, e.g., RAM memory,magnetic or optical drive or diskette, and the like.

The computer 1200 also may include one or more input/output devices 1206(e.g., a user input device (such as a keyboard, a keypad, a mouse, andthe like), a user output device (such as a display, a speaker, and thelike), an input port, an output port, a receiver, a transmitter, one ormore storage devices (e.g., a tape drive, a floppy drive, a hard diskdrive, a compact disk drive, and the like), or the like, as well asvarious combinations thereof).

It will be appreciated that computer 1200 depicted in FIG. 12 provides ageneral architecture and functionality suitable for implementingfunctional elements described herein or portions of functional elementsdescribed herein. For example, the computer 1200 provides a generalarchitecture and functionality suitable for implementing one or more ofRE encoding middlebox 112 _(E), a portion of RE encoding middlebox 112_(E), RE decoding middlebox 112 _(D), a portion of RE decoding middlebox112 _(D), a classifier of any of FIGS. 2-10, an encoder or decoder ofany of FIGS. 2-10, a merger of any of FIGS. 2-10, or the like, as wellas various combinations thereof.

It will be appreciated that the functions depicted and described hereinmay be implemented in software (e.g., via implementation of software onone or more processors, for executing on a general purpose computer(e.g., via execution by one or more processors) so as to implement aspecial purpose computer, and the like) or may be implemented inhardware (e.g., using a general purpose computer, one or moreapplication specific integrated circuits (ASIC), or any other hardwareequivalents).

It is contemplated that some of the steps discussed herein as softwaremethods may be implemented within hardware, for example, as circuitrythat cooperates with the processor to perform various method steps.Portions of the functions/elements described herein may be implementedas a computer program product wherein computer instructions, whenprocessed by a computer, adapt the operation of the computer such thatthe methods or techniques described herein are invoked or otherwiseprovided. Instructions for invoking the inventive methods may be storedin fixed or removable media, transmitted via a data stream in abroadcast or other signal bearing medium, or stored within a memorywithin a computing device operating according to the instructions.

Additionally, the term “or” as used herein refers to a non-exclusive“or,” unless otherwise indicated (e.g., “or else” or “or in thealternative”).

Although various embodiments which incorporate the teachings of thepresent invention have been shown and described in detail herein, thoseskilled in the art can readily devise many other varied embodiments thatstill incorporate these teachings.

What is claimed is:
 1. An apparatus, comprising: a data processingmodule comprising a processor and a memory communicatively connected tothe processor, wherein the data processing module is configured tosupport a set of redundancy elimination (RE) processing functions,wherein the data processing module is configured to: perform, for afirst packet associated with a first packet class, a first set of REprocessing functions including one or more of the RE processingfunctions; and perform, for a second packet associated with a secondpacket class different than the first packet class, a second set of REprocessing functions including one or more of the RE processingfunctions; wherein the first set of RE processing functions and thesecond set of RE processing functions are different.
 2. The apparatus ofclaim 1, wherein the data processing module comprises an RE encodingmodule or an RE decoding module.
 3. The apparatus of claim 1, whereinthe data processing module is one of a plurality of data processingmodules, wherein the processor is configured to: determine an orderedlist of the plurality of data processing modules associated with thefirst packet class of the first packet; and determine the first set ofRE processing functions based on a position of the data processingmodule within the ordered list of the plurality of data processingmodules.
 4. The apparatus of claim 3, wherein the processor isconfigured to determine the ordered list of the plurality of dataprocessing modules associated with the first packet class of the firstpacket based on information included within the first packet.
 5. Theapparatus of claim 3, wherein the data processing module is configuredto: based on a determination that the data processing module is at afirst position in the ordered list of the plurality of data processingmodules: store the first packet in a content store associated with thedata processing module; and perform RE encoding functions for the firstpacket using the content store associated with the data processingmodule and a fingerprint table associated with the data processingmodule.
 6. The apparatus of claim 3, wherein the data processing moduleis configured to: based on a determination that the data processingmodule is at a position other than a first position in the ordered listof the plurality of data processing modules: perform RE encodingfunctions for the first packet, using a content store associated withthe data processing module and a fingerprint table associated with thedata processing module, without storing the first packet in the contentstore associated with the data processing module.
 7. The apparatus ofclaim 3, wherein the data processing module is configured to: based on adetermination that the data processing module is at a position otherthan a last position in the ordered list of the plurality of dataprocessing modules: perform RE decoding functions for the first packet,using a content store associated with the data processing module,without storing the first packet in the content store.
 8. The apparatusof claim 3, wherein the data processing module is configured to: basedon a determination that the data processing module is at a last positionin the ordered list of the plurality of data processing modules: performRE decoding functions for the first packet using a content storeassociated with the data processing module; and store the first packetin the content store associated with the data processing module.
 9. Theapparatus of claim 3, wherein the data processing module is configuredto: based on a determination that the data processing module is at afirst position in the ordered list of the plurality of data processingmodules: split the first packet into a plurality of chunks; and performRE encoding functions for at least a portion of the chunks using acontent store associated with the data processing module and afingerprint table associated with the data processing module.
 10. Theapparatus of claim 9, wherein the plurality of data processing moduleshave a respective plurality of hash regions associated therewith,wherein the data processing module is configured to: based on adetermination that a hash of one of the chunks falls within the hashregion of the data processing module, perform RE encoding functions forthe one of the chunks using the content store associated with the dataprocessing module and the fingerprint table associated with the dataprocessing module.
 11. The apparatus of claim 9, wherein the dataprocessing module is a first data processing module, wherein theplurality of data processing modules have a respective plurality of hashregions associated therewith, wherein the first data processing moduleis configured to: based on a determination that a hash of one of thechunks falls outside of the hash region of the first data processingmodule, propagate the first packet from the first data processing moduletoward a second data processing module of the plurality of dataprocessing modules based on the hash region of the second dataprocessing module and the hash of the one of the chunks.
 12. Theapparatus of claim 11, wherein the first data processing module isconfigured to: select the second data processing module based on adetermination that the hash of the one of the chunks falls within thehash region of the second data processing module.
 13. The apparatus ofclaim 9, wherein the data processing module is a first data processingmodule, wherein the plurality of data processing modules have arespective plurality of hash regions associated therewith, wherein thefirst data processing module is configured to: for one of the chunkshaving a hash falling outside of the hash region of the first dataprocessing module, identify one of the data processing modules having anassociated hash region covering the hash of the one of the chunks; andselect one of the identified data processing modules based on theordered list of the plurality of data processing modules.
 14. Theapparatus of claim 3, wherein the data processing module is a first dataprocessing module, wherein the first data processing module isconfigured to: based on a determination that the first data processingmodule is at a position other than a first position in the ordered listof the plurality of data processing modules: receive the first packetand at least one chunk of the first packet from a second data processingmodule of the plurality of data processing modules; and perform REencoding functions for at least one chunk of the first packet using acontent store associated with the first data processing module and afingerprint table associated with the first data processing module. 15.The apparatus of claim 3, wherein the data processing module isconfigured to: based on a determination that the data processing moduleis at a first position in the ordered list of the plurality of dataprocessing modules: decode each encoding key included within the firstpacket.
 16. The apparatus of claim 3, wherein the data processing moduleis configured to: perform RE decoding functions for at least oneencoding key of the first packet using a content store associated withthe data processing module.
 17. The apparatus of claim 3, wherein theplurality of data processing modules have a respective plurality of hashregions associated therewith, wherein the data processing module isconfigured to: for an encoding key of the first packet, determine a hashof a chunk associated with the encoding key; and based on adetermination that the hash of the chunk associated with the encodingkey falls within the hash region of the data processing module, performRE decoding functions for the chunk using the content store associatedwith the data processing module.
 18. The apparatus of claim 3, whereinthe data processing module is a first data processing module, whereinthe first data processing module is configured to: for an encoding keyof the first packet, determine a hash of a chunk associated with theencoding key; and based on a determination that the hash of the chunkassociated with the encoding key falls outside of the hash region of thefirst data processing module, propagate the first packet from the firstdata processing module toward a second data processing module of theplurality of data processing modules based on the hash region of thesecond data processing module and the hash of the chunk associated withthe encoding key.
 19. The apparatus of claim 18, wherein the first dataprocessing module is configured to: select the second data processingmodule based on a determination that the hash of the chunk falls withinthe hash region of the second data processing module.
 20. The apparatusof claim 3, wherein the data processing module is a first dataprocessing module, wherein the plurality of data processing modules havea respective plurality of hash regions associated therewith, wherein thefirst data processing module is configured to: for a chunk having arespective hash falling outside of the hash region of the first dataprocessing module, identify one of the data processing modules having ahash region covering the hash of the chunk; and select one of theidentified data processing modules based on the ordered list of theplurality of data processing modules.
 21. A method, comprising: at adata processing module comprising a processor and a memory andconfigured to support a set of redundancy elimination (RE) processingfunctions: performing, for a first packet associated with a first packetclass, a first set of RE processing functions including one or more ofthe RE processing functions; and performing, for a second packetassociated with a second packet class different than the first packetclass, a second set of RE processing functions including one or more ofthe RE processing functions; wherein the first set of RE processingfunctions and the second set of RE processing functions are different.